package Test;

public class Register {
    public int cherk(String name,String pwd1,String psw2){
        //如果用户名长度小于3
        if(name.length()<3){
            return  -1;
        }
        if(pwd1.length()<6){
            return  -2;
        }
        if(pwd1!=psw2){
            return  -3;
        }
        return 1;
    }

}
